package imoocvideodev.dao;

import imoocvideodev.pojo.Users;
import imoocvideodev.pojo.UsersLikeVideos;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UsersMapper {
    int deleteByPrimaryKey(String id);

    int insert(Users record);

    int insertSelective(Users record);

    Users selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Users record);

    int updateByPrimaryKey(Users record);

    Users selectByUsername(String username);

    Users selectLogin(String username,String password);

    int addUserReceivedLikeCount(String userId);

    int reduceUserReceivedLikeCount(String userId);
}